package com.example.a513;

import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RadioGroup;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.viewpager.widget.ViewPager;

import java.util.ArrayList;
import java.util.List;

import adpater.LauncherAdapter;

public class LaunchSimpleActivity extends AppCompatActivity {
    private ViewPager viewPager;
    public static int[]arr = new int[]{
            R.mipmap.aa,R.mipmap.bb,R.mipmap.cc,R.mipmap.dd
    };
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_launch_simple);

        viewPager = findViewById(R.id.pager_launch);
        LauncherAdapter adapter = new LauncherAdapter(this, arr);
        viewPager.setAdapter(adapter);

    }
}